package org.sucri.servlet.controller;

import org.directwebremoting.annotations.DataTransferObject;
import org.directwebremoting.annotations.RemoteProperty;
import org.sucri.floxs.Tools;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: Wen Yu
 * Date: Jan 1, 2008
 * Time: 6:01:20 PM
 * To change this template use File | Settings | File Templates.
 */
@DataTransferObject
public class Payloads<T> implements Serializable
{
  public Payloads()              { super(); }

  @RemoteProperty
  private Map<String, T>[] data;
  @RemoteProperty
  private int totalRows;
  @RemoteProperty
  private String message;

  //accessors for both properties
  public Map<String, T>[] getData() { return data; }
  public int getTotalSize() { return totalRows; }

  public void setData(Map<String, T>[] s) { data = s; }
  public void setTotalSize(int s) { totalRows = s; }
}